<?php

/**
 * Description of RestaurarLineas
 *
 * @author JeyDotC
 * 
 * @export Modules
 * @export-metadata RequiredRoles:Agencia
 */
class RestaurarLineas extends Module {

    public function index() {
        $lineasEliminadas = $this->components->Lineas->getEliminados();
        
        $this->assign("lineas", $lineasEliminadas);        
        $this->display("index");
    }
    
    public function restaurar() {
        $id = $this->request->get("id");
        
        $this->components->Lineas->restaurar($id);
        
        $this->index();
    }

}

?>
